package com.pubinfo.passbook.common.service.request.tax;

import com.pubinfo.passbook.common.entity.TSourceInvoice;
import com.pubinfo.passbook.common.model.bo.SubsidiaryInfo;
import com.pubinfo.passbook.common.model.dto.tax.QueryByTimeResult;

import java.util.List;

//@Async("taskExecutor")
public interface RequestTaxServer {
  QueryByTimeResult queryByTime(String requestId, String kprq, SubsidiaryInfo info);
  
  List<String> check(String id);
  
  Integer sync(String strtDate, String endDate);
  
  List<TSourceInvoice> queryByDateAndInfo(String info, String date);
  
  Integer saveByDate(String date);
  
  List<TSourceInvoice> listByDate(SubsidiaryInfo info, String date);
  
  Integer saveByDateAndTaskId(String date, String taskId);
  
  void sync(String taskId);
  
  List<TSourceInvoice> fetchPage(String requestId, Integer pageNumber, SubsidiaryInfo info, String date);
}






